Only write the direction 'out' if it isn't already