Changed IFun to use space