Modified registration and added start_time to task