Added messagehandler for slaves