Made this script 6 months ago, a work in progress.