Added preliminary logic for EMR support.