Returns filename to main... Not as cleanly as I would like