Trying cyndi's pseudocode
changed rader stuff
Fucked with some stuff