Widget completely works now. Fixes #8.