First version
Add additional stats for preprocess