Rearranged a bit for testing script/chan mapping