Cleaned up code. Fixed message ID scraper method.