More debug messages. Have also figured out that vPortEnterCritical and disableInterrupts can be nested, causing locking problems if they are aliased to the same funciton. Will figure something else out for that. For now, disableInterrupts does nothing.