Refactored http get to utilize