Separated duration checks and thumbnail generation