Api4

Get dougw some test code to help with bug.