There is no point in checking for both exit and rem every single time when scanning the command table. Once is enough.