All those if-elses can be replaced with `bluekai_numberOfRunningRequests =  bluekai_numberOfRunningRequests !=1 ? bluekai_numberOfRunningRequests + 1 : 1`;