Added logic for revenue field