Added support for generating password.