Rewrote Resources handling. Simpler, better, more powerful :)