Created functionality for handling dynamic retrival of files.