First pass of aliases code.