Last commit before wifi rewriting.
Seemingly works.