Checking resources first