Tried to implement controller dispatch.