Stat calculation asynch

Most features implemented, works well