Do better job checking detector arrays and increase maximum number