Added back some delay code that went missing, and added some style