Fixed Bugs. Now works.