Full credit goes to cat7420_test for the original project: http://scratch.mit.edu/projects/cat7420_test/1480807