Implemented limitedInfection and its tests. I think everything is working correctly.