Added NewFunction method