Fixed 8 unused warnings