Changed initialization of pointers to null