Add console log to track the issues.