Ensure max_time_window is an int not a string. Doh.