Added function to mix weights together