Shift and execute method, generate doc