Type logic set up.