Convert all aliases to functions and change file name