Changed rest of manipulation functions to take the struct by reference.