Adds exit write