Getting the resources dynamically