Remove test code from process_frame