_.each -> for
Missing error handler.
Fix time issue in stats test.