Adding switch_to_parent_frame so that it can actually be called