Updated to modern Array, Dictionary declarations. Removed queue claiming and releasing.