Porting the Keykos confinement technology to Scheme