Added a hook on resque