Moved stats from loop to example code. Removed unused timing methods.