Generic Worker Code.