Fixed "'-name' is deprecated" warning.