Create method to handle both CAN frames.