Works. Needs cleaning up though. (And new issue: to_string doesn't work?)