Fixed major resource gathering error - not yet tested