Add statistics collection to contract