Reimplement ResourceHandler struct