Add worker functionality.

Change-Id: I7d624df38278dbfba8a3123285b33a52bdc3b870