Relative orientation fixed

Refactoring needed. A lot.