Added getFlowUrl function