Working on ring functions