Fixed order of let declarations (it was backwards) and fixed its pretty
printing as well.