First pass of aliases code. (untested).