Add function to get worker id number