Add native support beforeSend