Refactored the way the amount of gems used gets incremented, and made parallel installations work.