Fixed horrendous code formatting