Move timing function to end of files for better results