Updated move() to work with captures