Added function to map multiple files