Replace function due to renaming to vector