Added separated thread class for upload