Bug fixes, added scrubbing, added precompilation of templates.