Improved queue to use first in first out.