Add standalone option to auto-generated files
Fix cancel for other user id