Adding console log for debugging