Implement saving/restoring applied classes