Now writes valid PDBs