Moved a few things to allow using common transforms for a star counter. This implementation is basic and hacky, but good enough as proof of concept.