Changed pointer to slice to directly using slice (which is a pointer to an array anyways)