Small update to getprefix.