Added logic without database.