Add multiprocess support