Added some performance testing code.