Adding Frank's function