Adds mirroring functionality.