Started using timer interrupt instead of instruction delays