initial qval queue implementation working.