Removed hardcoded input

set max time from file input