Rewrote createWorkspace functionality