Added some base functions