Changed a couple of lines to get rid of a bind statement