Removed deprecated warnings.