Adding munge function