Type of enterMode is not a string. I don't think this works.