Removed file loading at the beginning, takes already loaded file.