Move code to second frame?

EDIT: Disregard this, this was just the tip of the iceberg of my problem.

Please close.