Added script for handling incoming messages