Fixed a few things in pi's hub library.