GrashopperPlayer input components

Hey, I am trying to develop a GH script including some input functions that is supposed to be used with GrasshopperPlayer command.
This input is a set of points representing a curve. I would like to detect moment when user is done adding new points. Then, I would like to take these points and bake the final curve in Rhino document. The naive solution works, bus is really slow - it seems that the baking is done on every frame. Is there some workaround?