Alejandro's function for freesurfer