Get balance function.