Added missing parameter in attach().