Add write and read functions for proc testing