Adding method for parsing the frames