Fixed up the mistakes and hate the code.