Thanks to Carlos for pointing me in the right direction for this one :-) I replaced the "$1" with "$@"! Cheers all, Pete.