Second attempt at making queue work
Added queue functionality. Need to test on windows now