Dynamic loading code added. Very incomplete...
By incomplete I mean doesn't dynamically load anything.