Adding testing routines.