Switch to pointer parameters to fix boost bug.