Added fixed size queue to clean up resources