Attempting to get stability functional