Removed comments, added time measurement functions.