Reduces warnings and deprecation compiler messages.