Moved to a more incapsulated methods, renamed methods write & read.