Removing some warnings from the code.