Added actual code. Dose not work because of an immport bug.