Fix all warnings in new class