Fixed bugs. Made faster.