Change API and add diceware method