Adding support for bind attribute

This really needs a comment, I think only you understand it.