Add tools, copied from lwe-ui