[DEV] Callback now sends the frame's type.