Added nmf method