Added performance checking.