Removed useless "check needed stuff" loops.