Added const to unmodifiable pointers used as parameters.