Change attach behavior