Updated libraries, added early handling of Residence plugin.