Implemented defix function