Added initial version of ws API