Add remote attach functionality.