Make pseudocode state capcontroller actually work..