Updated to write each type to its own file