Implemented localStorage service.