Add the resqueue code to support hooks