Public worker api so this module is useful for tests too