Better alternative with repr()