Adding pointer functions that work