Added check for adjacent numbers greater than 1