Added in rainbow checking.