Refactored GetObjectDetails so that everything isn't fetched at once.