FS-wrapper for using in generator-functions