Protocol-agnostic BSA script.