Added rudimentary queue polling
Fixed compile errors
Fixed compile errors
Fixed compile errors
Fixed compile errors
Fixed compile errors