Successfully tested defix function