Added function to produce objects to call KF