Altered if statement and removed log message