Breaking up the write functions and generalizing bonds.