Changed frameOfScene to frameOfAnimation for clarity.