You're switching back and forth between setting up the curl bits and between setting up the tracker struct that we're going to give back to people. Instead, please do the curl setup and then build the tracker struct up from that — it'll make future maintenance much less likely to miss something.