Support for custom orientation