Now resource works properly