Replaced curb with typhoeus and refactored