Added framework for base conversion