Removed my broken synchronous style code. Favour a lower level interface; this may be wrapped.