Changed functions so they return type object_s instead of type void *