Fixed all the bugs.