Found bug causing weird distance behaviour. Still an issue with normalization.