Changed to a utility function instead of simply contentment.