Dynamically parses attributes upon (event)

Probably not the cleanest way to write this, but it works and is super useful.