Controller optimization and such