Yep, this is safer and  has less memory consumption.