Add support for files array