Emil's bot and related code.