Tweaked script to restart delayed jobs- function syntax and status reporting