Reorganizes code to remove potentally ambiguous reference to the this variable and allow for aliases to be created.