Changing method to raw curl calls