Populate script and merged fucntions