Stage positioning trigonometry added.