Moved nearest establishment function to establishment controller