Reimplementation of RWtorchLight