Optimizes loading. Moves spawn-edit-server to a script