Added preliminary implementation of time trial