Added message processing, and constants file.