I might try that instead of my stupid string scanning technique