Experimenting with getting rid of exception