Fixed some compilation errors. SHOULD WORK IF API WORKS CORRECTLY!