Small changes to scene writer.