Feature/statistic module support

Closes #378