Ugly code is usually a surprisingly good motivator.