Add interactive function my-swap-buffers