Added math functions, changed timeArray values