Removed deprecated function calls.