Added location for beams,
Added plugin-loading (and related) code.