Added testing functions.