Fix compilation by renaming a few method calls accordingly to previous commit.
Ignoring a few warnings of unused variables