Added more helper fns, removed multiple mmaps