Use references instead of pointers