Added bit operations and forming basic messages.