Fixed issues with placement and rotation of masses.