Implemented correct handling of partial and multiframes