Made a new and better workspace data type, which is tested and works.