Changed the way that calculateFlowArrivalRate is defined