Moved script from academic to seperate file