Added console log for debugging