Added resources handler.