Added sleep and debug.