Added n-dimension J & W filtering