Defining resources via custom vars