Made the mirroring work as intended