Added some initialisation function for non memory allocation.