Adding install function.
Adding removal also in history selection.