Updated usage of getFlow