Added malloc's in initialisation methods