Adds useful aliases and sorts variables