First attempt at getting things working. Still broken, but almost sorta working