Added ability to add behaviors to things that take extensions.