Added revenue function