Modified queue to use stdbool