Removed cookie code and switched back to async requests