Added in a 'write velocity' bool for debugging