Maybe we can reuse document.path instead of copy pasting it every time?