Updating: supporting --output-a (append) and --output-w (write)