Added preliminary support for lid rotation.