Made a testing function.