Added timing measurements for REST calls.