Removing lines of code that are causing warning messages.