Added log method.