Adding and removing libraries