Implemented the wonderful persistence layer