Implemented on_read_frame() event and callback registration subroutine.