Reworked delay. Added option to print in ticks.