Add inference method for parsing multiple files.