Use try-catch-block to set aliases.