Changed base code to match Bitadroid

Source
https://github.com/DavidGMarquez/Bitadroid