Made all worker functions static