Added cleanup of empty orders and empty limits