Added code for simulation and scraping