For Spark and Riot