Fixed many problems.