Run control middleware