Uncommented ugly code

BUT IT WORKS!!!!