Replace exists? with exist? to avoid warnings.