Refactored variable name.

Renamed "theRect" to the more descriptive "frame".