Cleaned code. Starting with 'orientation' method.