More cleanup
Re-worked pre_process() completely with Giacom's input, making it significantly better.
Hopefully maybe fixed the maps this time