Refactored local area parsing and renamed some stuff to be more idiomatic