Declare variable in TranslateCoordinates callback