Added dynamic resource loading.
Blame me when not working.