Added time scheduling
Adding Timer
Added trigger scheduling and optimizations