Implementing payload parsing