Add support for p2pool and mining