The printf was leftover from my command line testing