Reset rates
Added template sampling