Added stream operator support to API interface