Fixed parse functions to take a pointer pointer for payload