Replaced exists? with exist? to avoid warnings.