Removed HTTP Response algorithm and made it a method