More compilation warnings. Removed unused variable.