Added some testing code.