Redesigned internal dataflow of the backend