Updated to get orientation information.