Added preferences() delegate method and deprecated configuration()