Export all needed objects to foreach loop