Optimized some stuff and a few other things that I don't care about documenting.
Fixed permissions for /ha