Trying to use some tricks to speeden up. Fail.