Implemented alias() method
Merged Mengjia's fixes