Add main in worker