Implement logic + JSON storage