Updated manifest
Moved script execution outside of loops to reduce number of executions.