Modified library to output orientation angles