Compileable without R
Still not fully running