Switched to using a pointer to a context block for parameters. Context includes port and logger callback function