Prepare tasks