Work offloading algorithm