Implemented gem mirroring.