Implemented a (somewhat less buggy) workspace print function.