input_rules now allows callback function for the message.