Added set, remove and write methods.