Converted CLI methods to click.