Switched to repa arrays instead of vectors