Get rid of warnings. Still need to work on generics.