The curl routine that's actually three steps