Last changes to make this work with Blakecoin