Reordered actions from install to before_install