Passing type to the server done