Updated to process endless jobs