Moved editor initialization into a separate script