Added print function for any base.