Deleted unused function for delay.