Added monitor parameters to do_swap