Save level data automatically, closes #1927