Setting dynamic attributes after initialization

Don't know if this is useful to anybody else, but I thought I would add a pull request anyway.
Setting dynamic attributes after initialization.