Refactored to() conversions and implemented NodeWrapper class.