Added structure-sending functionality for server