Added the object return function.