Fixed problem with unnecessary threads for download files
Added common proc for DET activity log