Added functionality for flex stp