Added some helper functions
Added delta to time-depending calculations