Modified for Machinecoin