Script working with a little bit of error checking.