Changed from set filename to input argument