Modified Sceditor to make it work perfectly