Simplified unapply method for varies frames and check more errors during frame parser.