Fixing bugs...I should read up on how to avoid mutable state.