Removed warnings in code.