Fixed several very important issues.