First version of working delay code