Made this thing actually work, more or less.