It is working. Some things should be polished (the program should exit when told to, for example).