Added resources support.