Add comments to user prompt logic