Updated and refactored curve editor.