Allow before to be called inside scrape