Use file instead of pathname