Fixed alot of bugs.