Added message log(needs more work).