The Structure And Functioning Of Metacommunities In Changing Environments