Return slices instead of using pointers in several methods