Finalized version, working webservice