Added testing function