Minor refactoring in VirtualFlow.
Add more methods to VirtualFlow.