maxHours query parameter, fixes #1182