Resource constructor shortcut