Updated math class, timestamp functions and more.