Added attribute code to exec_obj_get().