Implement basic flow.
Add server test codes.