More work on the statistics extension. Added frontend.