Change the GetCommand function that takes a PatData pointer and returns a pointer to Cmd to private.