Added contract functionalities.