Add MODE handler which is 80% tested.