Added a log functions