Allow stats module to be specified, fixes #7