Improved the code to handle multiple infusions per request