Replace resources