Adjusted getKeys paremeters to pointers.