Modified client for web

Modified the client functions to allow for web interface