Everyone who has done that had been very sorry. And you can’t get much help here.
Whatever you’re doing, do in a plugin.