Used getData instead of getObject, and added a success message