Adding protocol to script