Added functionality to create accounts.