Added the smart skeleton selection, cleaned up logic with resetting
arrays, and started saving more data.