Added searching for chessboard pattern.