Added basic message composition and validation functionality.