Added a proto_reg_handoff_frame() function and switched from