Fudged the static array sizes to get clipping working. Don't tell anyone...