Updated some deprecated methods.