Worker code developed for my thesis work.