Moving add collection script to a single php.