Reintroduced __repr__() which should not have been removed