Auto-Orient

(note: this PR depends on #17)