Fixed the issue with reverse logic and updated the log line.