Added loading from resource