Fixed distribution management. Made some optimisations to gunhit.