Add function attachment