Update to have more code in the delayedTask