Erroneous function removed