Wrapped all of log option stuff in guard