Check three values instead of just one