This was ugly