Put beforeSend call after loop