Refactor: Require function get filename