Functions work better when they end