Removed errors and completed SET functionality.

Important note: untested!