Moved pointer functions to foreign/data