Make logic smaller.