Improved delivery script. Won't match if the pattern is < 3 characters long.