Changed return type to generic object.