See https://github.com/samoht/mirage/commit/051e3cb67bcc013a2803560f51169aaa29d8625b