Fixed the computeresource function