Removed bug where speedvector array was reused.
Added debug targets.