Added log option