Simplified logic for acquiring input libraries during the MASS stage.