Added testing code.