Beginning of simpler implementation of dispatch.