Add some debugging statements and keep delay even during debugging.