Rewrote ALL of Logan's code. ALL OF IT