Implemented background state save