updating how the taks queue is built to streamline the process.