Logic error, and sped up time delay