Updated protocol handler script.