Functions work