Added saveAddress function