Added -r parameter for filtering nodelist