Adding this script in the short term to distribute on maverick, delete later