Timing and Notifications to optimize drawing.
Also added som debugging printouts