Still creates a file with the name of the string as opposed to the basename :(