Added packet parsing logic and assertions for frame and tick count