Added multifile and multi table. Lacks of error control