Added load, save and write methods.