Unboxing and unlearning bad behaviour