There was originally a message:

> #TODO, this won't work with more than 10 md devices

in the code block. Can we re-add this and/or make the code more flexible?