Handle multiple roots

@staugaard