Chagned square-root to square because that is actually what it is.