Some improvements to frame configuration saving/restoring - cant get restore to work yet though....