Rearranged double entry check.