Bugfix for ThreadLocal [Critical], added setters to Capabilities