Added configuration support, and some core API tweaks