Slight refactor of get and split write.