Why do we need ATTACHMENT_DIR if we only use it here?