Better error handling on objects.