Multimedia: Optimized the code and standardized variable names