added optional time argument to the track method