Adding bitcoin functionality