Adds attachment behavior