Add messages directive