Change shell function into install script, and tested