Changed resource loader a little