Added functions and switched headers to call by reference