Added logic for processing message

Signed-off-by: rpgmaker <olamide.bakre@gmail.com>