Wrote basic plugin logic without saving to DB