Changed Memory allocation