Add support to handle open ".chi" files directly