Added a log handler