Very crude editor implementation