Added testing functions