The embodiments herein relate to a method performed in a UE and a UE for mitigating or cancelling of interfering transmission in a network. We model the register file as a puzzle board and the program variables as puzzle pieces. In one preferred embodiment, the protective film of the device is a thick film formed by screen printing. To ensure a wide tunability of the whole system, Raman-shifting of the compact sources of ultrashort pulses in conjunction with frequency-conversion in nonlinear optical crystals can be implemented, or an Anti-Stokes fiber in conjunction with fiber amplifiers and Raman-shifters are used.