Use pointers instead of object values