Add support for plugins and settings in here

Very messy support, at the least.