Implemented passing data to server