Remove debug code and fix payload.completed? to work with new jenkins