Added preliminary 3D rotation.