Fixed a dumb move in regard to passing the filename through