Added a new testing function