numButtons still broken.
Prior to adding try/catch for numButtons.
numButtons try/catch and more debug lines.