Tidy complaints code