Added support for filename based file addition