Small tweak to pointer function I think