Moved check function to TranscoderUtils to clean up main function.