Greatly reduced the complexity of Privy and simplified API