Inserted illegalDirectionException.