Features/mirror

Fixes #566.