Added the 'gunn' function.