Change queue method to prevent overwriting of values added to the queue within a matter of milliseconds close to eachother.