Profile stats refactor and match rejection bug fix.