Took out hard coded max duration