Restructuring: Indent
Restructure: Temporarily ad the functions back to global scope. Eventually though these will all be namespaced into EDITOR.<namespace>