Added resque retry support