Moved rgb checks to T4