Added possibility to learn ham