Converted reinterpret calls to pointers for improved performance