Define reload function before initialising the resource