Checkin before refactoring to interface cloud queue and cloud config to allow unit testing.