Cleaned up various warnings from IntelliJ.