Renamed functions to {get,write}_results