Removed the Ready variable. Set everything to -1 initially and simply
checked that entries are not -1 first.