Added Active Time Control.
Finished up some maths