Added support for coinbase. See pull req for more documentation.