Added thought pools plus the ability to mine