Added Scott's code for everyone to use