EMR takes too long