Easy fix #41, now supporting changing of resources