Include check of location in main routine