Translated the whole thing to C89