I think this needs a `try/except` in case an invalid attribute is given.