Added log method