Turn CS off and on in subsidiary functions as well -- seems to be necessary, though I don't know why, when they are called in the middle of other functions that do this in a way that encompasses the sub-function call.