Added typed resource support.