Added Condition class

Conditions for exact timing, no more hard coding sleeps.