Finally got this stuff working.