Add BufWritePre cmd