Adding some bitcoin functions.