Brushed up on orbiting algorithm