Added function to get the portal location.
Check the actual portal location rather than the destination.