End of testing; function declaration