Fixed bugs. Everything works.