Implemented base flow.