Added convolution functions to the invert routine.