Encapsulated the $dest variable.

Encapsulated the $dest variable.