Created a local equivalent of postinstall