Added logger fn support