Code Cleanup and SSL data fetch