Move to undepricate function
Change to absolute time