Added some stuff to implement map gen from file.