Added ability to have multiple elements attached