Adding latest changes to matlab file.