Add totalling and a file streaming system