Adding message parsing and processing functionality (not done yet)