Added require of pathname.