Core backend of the flow library