public async Task AddTankFunctions(TankMovementCmdEventHandler movementFunc, TankMovementCmdEventHandler aimFunc, Action <IConnectedSystemEndpoint, PrimaryWeaponFireState> fireFunc, Action <IConnectedSystemEndpoint> secondaryFireFunc, Action <IConnectedSystemEndpoint> loadFunc, Action <IConnectedSystemEndpoint> ammoFunc) { var t1 = _serverHandler.AddMovementFunction(movementFunc); var t2 = _serverHandler.AddAimFunction(aimFunc); var t3 = _serverHandler.AddPrimaryFireFunction(fireFunc); var t4 = _serverHandler.AddSecondaryFireFunction(secondaryFireFunc); var t5 = _serverHandler.AddGunLoadFunction(loadFunc); var t6 = _serverHandler.AddAmmoFunction(ammoFunc); await Task.WhenAll(t1, t2, t3, t4, t5, t6); }