Added processor number check