Changed check function to return totality.