Added basic support for editing fields.