More work on TRIANGLE. Still not working