Added multipass smotthing filtering and support for stats