Modernized API use.