Changes for contracts API.
Changes for contracts API.