Getting rid of compiler warnings from class.