Replaced nullptr with NULL (nullptr not supported on CIMS)