Adjust detection pattern