Improved evaluation function, refactored timer.