Avoid using pointers if possible