Allow setting properties from Resource constructor