Fixed NullPointer exception caused by nil value for name gender
Improved parallelization.