Kind of working...
The code works exactly as intended.