Getting rid of most warnings