Defined the defix function.