Adding a bunch of commands to be implemented; better mutex usage.