Fixed pointer by reference to fix Linux compile warnings.