Added save and load skeleton functions