Added Noah's code that I accidentally over wrote (emailing)