Added an incomplete check for insufficient material.