Added error messages for bad addresses