Colin's original code, which can be found here: http://colinaarts/code/moovie