Improved performance of movie code