Clarified code, removed log line