Updated api version to 1.2 in order to remove deprecation warning.