Added basic functionality. Note that this is not meant to be a standalone app, ever.