Add get_workspace_container, fixed some bugs, and make refactoring.