1) Cleaned up source codes.
2) Added log timers.