Finished message parsing function.