Reviewed: Updated the update and install function to use same helper function