Script optimization

Tried a new way to accumulate points which is less cpu heavy, expect
more optimizations in the future.