Still need to fix scopes stuff, but closer.