Improved 'begin' foreign function