Code for PSoCs that we can't use anymore