Add error checking and install command