Got rid of compiler warnings and confirmed it worked on ver 5.1.1.